package com.yic.module.base.controller.admin.erpcentermapping.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * ERP工作中心映射 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ErpCenterMappingBaseVO {

    @Schema(description = "工厂", requiredMode = Schema.RequiredMode.REQUIRED, example = "16274")
    @NotNull(message = "工厂不能为空")
    private Long factoryId;

    @Schema(description = "ERP工作中心主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11440")
    @NotNull(message = "ERP工作中心主键不能为空")
    private String erpCenterId;

    @Schema(description = "ERP工作中心代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "ERP工作中心代码不能为空")
    private String erpCenterCode;

    @Schema(description = "ERP工作中心名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "ERP工作中心名称不能为空")
    private String erpCenterName;

    @Schema(description = "生产车间", example = "2394")
    private Long workshopId;

}
